<template>
  <div class="hello">
      
   购物车
    {{ shopName }}
  </div>
</template>

<script>
  export default {
    name: 'HelloWorld',
    props: {
      msg: String
    },
    data(){
      return{
        shopName:""
      }
    },
    mounted(){
      this.$bus.$on("addName",(name)=>{
      this.shopName=name;
      });
    },
  }
</script>

